package dk.eclipse.android.badassapp.helper;

import android.app.Activity;
import android.view.Display;
import android.view.WindowManager;

public class DisplayHelper {

	public static Display getDefaultDisplay(Activity context) {
		WindowManager wm = context.getWindowManager();
		Display d = wm.getDefaultDisplay();
		return d;
	}

	public static int getDefaultDisplayWidth(Activity context) {
		WindowManager wm = context.getWindowManager();
		Display d = wm.getDefaultDisplay();
		return d.getWidth();
	}

	public static int getDefaultDisplayHeight(Activity context) {
		WindowManager wm = context.getWindowManager();
		Display d = wm.getDefaultDisplay();
		return d.getHeight();
	}

}
